package com.xbjtech.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.xbjtech.mapper.StoreMapper;
import com.xbjtech.model.Store;
import com.xbjtech.model.StoreExample;
import com.xbjtech.service.StoreService;

@Service
public class StoreServiceImpl implements StoreService {

	@Autowired
	StoreMapper storeMapper;
	
	@Override
	public List<Store> getStoresByRegionId(StoreExample example) {
		return storeMapper.selectByExampleWithBLOBs(example);
	}

	@Override
	public Store getStoreByPrimaryKey(Long id) {
		return storeMapper.selectByPrimaryKey(id);
	}

}
